<!DOCTYPE html>
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
    <style>
        .InMoney[data-v-0ad3c61f] {
            color: red!important;
        }
    </style>
</head>
<body style="font-size: 21.7589px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top"><span style="display: none;">加载中...</span> <span></span>
        <ul>
            <li><a href="{:U('Users/betRecord')}">投注记录</a></li>
            <li class="on"><a  href="{:U('Users/seekOrder')}">追号记录</a></li>
        </ul>
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Users/userCenter')}" class="iconfont back"></a>
    </header>

    <div data-v-0ad3c61f="" class="main" s="[object Object]">
        <div data-v-0ad3c61f="" class="textMore dataType"><em data-v-0ad3c61f="">今天</em>
            <i data-v-0ad3c61f="" class="iconfont"></i>
        </div>
        <div data-v-0ad3c61f="" id="leftTabBox">
            <div data-v-0ad3c61f="" class="hd">
                <ul data-v-0ad3c61f="">
                    <li data-v-0ad3c61f="" class="lx <?php if($leixing == 0){echo 'on';} ?>"><a class="userSearch  active" data-id="0" onclick="xuanze1(this.id)" id="quan" style="text-decoration:none">全部</a></li>
                    <li data-v-0ad3c61f="" class="lx <?php if($leixing == 1){echo 'on';} ?>"><a data-id="1" class="userSearch lx active"  onclick="xuanze1(this.id)" id="yi" >未开始</a></li>
                    <li data-v-0ad3c61f="" class="lx <?php if($leixing == 2){echo 'on';} ?>"><a data-id="2" class="userSearch lx active"  onclick="xuanze1(this.id)" id="wei">进行中</a></li>
                    <li data-v-0ad3c61f="" class="lx <?php if($leixing == 3){echo 'on';} ?>"><a data-id="3" class="userSearch lx active"  onclick="xuanze1(this.id)" id="deng">已结束</a></li>
                </ul>
            </div>
            <div data-v-0ad3c61f="" class="bd dontSelect">
                <div data-v-0ad3c61f="" class="scrollBox">
                    <div data-v-0ad3c61f="" class="touchScroll">
                        <?php if($arr){ ?>
                        <foreach name="arr" item="v">
                            <div data-v-0ad3c61f="">
                                <a data-v-0ad3c61f="" class="active" href="{:U('Users/seekDetail',array('id'=>$v['id'],'table'=>$v['table'],'lotteryclass'=>$v['lotteryclass']))}" >
                                <div data-v-0ad3c61f=""><p data-v-0ad3c61f="">{$v.classname}
                                    <span data-v-0ad3c61f="">￥{$v.moneys}</span></p>
                                    <span data-v-0ad3c61f=""><?php echo date('Y-m-d H:i:s',$v['ctime']); ?></span></div>
                                <strong data-v-0ad3c61f="">
                                    <?php if($v['num']=="0"){echo "未开始";}
                                          elseif('0' < $v['num'] && $v['num'] < $v['qishus']){echo "进行中";}
                                          elseif($v['num'] == $v['qishus'] && $v['zo_money']==".000"){echo "已结束";}
                                          elseif($v['num'] == $v['qishus'] && trim($v['zo_money']) < 1 ){echo '0'.$v['zo_money'];}
                                          elseif($v['num'] == $v['qishus'] && trim($v['zo_money']) >= 1 ){echo '<span data-v-0ad3c61f="" class="InMoney">'.sprintf("%.2f",$v['zo_money']).'</span>';}
                                    ?>
                                </strong>
                            </a>
                                <div data-v-0ad3c61f="" class="hr1px"></div>
                            </div>
                        </foreach>
                        <div data-v-0ad3c61f="" class="msg noMore">已显示<?php if($shijian==1){echo "今天";}elseif($shijian==2){echo "昨天";}elseif($shijian==3){echo "七天";} ?>全部记录</div>
                        <?php }else{ ?>
                        <div data-v-0ad3c61f="" class="fullPageMsg">
                            <div data-v-0ad3c61f="" class="fullPageIcon iconfont"></div>
                            <p data-v-0ad3c61f="">暂无记录</p>
                        </div>
                        <?php } ?>

                    </div>
                </div>
                <div data-v-0ad3c61f="" class="scrollBox"><!----></div>
                <div data-v-0ad3c61f="" class="scrollBox"><!----></div>
                <div data-v-0ad3c61f="" class="scrollBox"><!----></div>
            </div>
        </div>
        <div class="_problemBox" data-v-0ad3c61f="" style="display: none;">
            <div class="blackBg"></div>
            <div class="moreLayer">
                <ul>
                    <li class="<?php if($shijian == 1){echo 'on';} ?> times"><a data-value="1" class="userSearch  active"  onclick="xuanze(this.id)" id="jintian" >今天</a></li>
                    <li class="<?php if($shijian == 2){echo 'on';} ?> times"><a data-value="2" class="userSearch  active "  onclick="xuanze(this.id)" id="zuotian" >昨天</a></li>
                    <li class="<?php if($shijian == 3){echo 'on';} ?> times"><a data-value="3" class="userSearch  active "  onclick="xuanze(this.id)" id="qitian" >七天</a></li>
                </ul>
                <ul>
                    <li><a>取消</a></li>
                </ul>
            </div>
        </div>
    </div>

</div>

<script>
    $(function(){
        $(".moreLayer ul:nth-of-type(1) li").each(function () {
            if($(this).hasClass("on")){
                $(".dataType em").text($(this).text());
            }
        })
    })


    //    今天 明天 七天 切换
    daytab();
    function daytab() {
        $(".dataType").click(function () {
            $("._problemBox").show()
        });
        $(".blackBg").click(function () {
            $("._problemBox").hide()
        });
        $(".moreLayer li").click(function () {
            $("._problemBox").hide()
        })
    }

    //类型搜索 和 时间搜索

    //时间的 传值
    function xuanze(a){
        var zhanghao = $(".userInput").val();
        var shijian = $("#"+a).attr("data-value");
        var leixing = $(".lx.on").find("a").attr("data-id");
        window.location.href="/Users/seekOrder/shijian/"+shijian+"/leixing/"+leixing+"/zhanghao/"+zhanghao;
    }
    function xuanze1(b){
        var zhanghao = $(".userInput").val();
        var shijian = $(".times.on").find("a").attr("data-value");
        var leixing = $("#"+b).attr("data-id");

        window.location.href="/Users/seekOrder/shijian/"+shijian+"/leixing/"+leixing+"/zhanghao/"+zhanghao;
    }


</script>
</body>
</html>